const router = require('koa-router')()
const notice_controllers = require('../../controllers/notice_controllers')
const jwt_auth = require('../../middleware/jwt_auth')
const jwt_info = require('../../middleware/jwt_info')

router 
  .get('/notice/top8', notice_controllers.get_notice_top8)
  .get('/notice/allData', notice_controllers.get_notice_all)

  // 公告详情
  .get('/notice/getNotice/:id', notice_controllers.get_notice)

  .post('/notice/insted',notice_controllers.insted_notice)
  .post('/notice/delect',notice_controllers.delete_notice)
module.exports = router